import request from '@/util/ProRequest'

// 获取权限列表
export function getWorkReportList(params) {
    return request({
        url: '/workReport/page',
        method: 'get',
        params
    })
}

export function addWorkReport(data) {
    return request({
        url: '/workReport/add',
        method: 'post',
        data
    })
}

export function updateWorkReport(data) {
    return request({
        url: '/workReport/update',
        method: 'put',
        data
    })
}

export function queryWorkReportById(id) {
    return request({
        url: '/workReport/'+id,
        method: 'get'
    })
}

export function deleteWorkReport(id) {
    return request({
        url: '/workReport/delete/' + id,
        method: 'delete'
    })
}

export function batchDeleteWorkReport(ids) {
    return request({
        url: '/workReport/batchDelete?'+ids,
        method: 'delete',
    })
}
